package com.jxaummd.mushroom.core.util.tool.glide;

import com.bumptech.glide.load.model.GlideUrl;
import com.bumptech.glide.load.model.LazyHeaders;

public class GlideUnitl {

    static LazyHeaders mHeaders = new LazyHeaders.Builder()
            .addHeader("Referer","http://jxaummd.com")
            .build();
    /**
     * 获取带有默认refer的GlideUrl
     * @return
     */
    public static GlideUrl getDefaultReferUrl(String url){
//        if(url==null||url.endsWith(""))
//            throw  new RuntimeException("The String url can't be null ! ");
        GlideUrl glideUrl = new GlideUrl(url,mHeaders);
        return glideUrl;
    }
}
